package com.xing.feign;

import com.xing.Utils.Result;
import com.xing.feign.FallbackFactory.UserFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author <a href="https://gitee.com/a-tom-is-cry">Xing</a>
 * @Date 2025/3/18 22:43
 * @Description
 */
@FeignClient(value = "conference-admin-server" ,contextId = "UserFeign",fallbackFactory = UserFeignFallbackFactory.class)
public interface UserFeign {
    @GetMapping("/sys/user/{id}")
    public Result getUserById(@PathVariable("id") String id);
}
